package com.ruoyi.camp.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营地预约对象 c_appointment
 * 
 * @author ruoyi
 * @date 2024-11-26
 */
public class CAppointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约ID */
    private String appointmentid;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userid;

    /** 营地ID */
    @Excel(name = "营地ID")
    private String campid;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmenttime;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal apprice;

    /** 预约状态 */
    @Excel(name = "预约状态")
    private String appointmentstatus;

    public void setAppointmentid(String appointmentid) 
    {
        this.appointmentid = appointmentid;
    }

    public String getAppointmentid() 
    {
        return appointmentid;
    }
    public void setUserid(String userid) 
    {
        this.userid = userid;
    }

    public String getUserid() 
    {
        return userid;
    }
    public void setCampid(String campid) 
    {
        this.campid = campid;
    }

    public String getCampid() 
    {
        return campid;
    }
    public void setAppointmenttime(Date appointmenttime) 
    {
        this.appointmenttime = appointmenttime;
    }

    public Date getAppointmenttime() 
    {
        return appointmenttime;
    }
    public void setApprice(BigDecimal apprice) 
    {
        this.apprice = apprice;
    }

    public BigDecimal getApprice() 
    {
        return apprice;
    }
    public void setAppointmentstatus(String appointmentstatus) 
    {
        this.appointmentstatus = appointmentstatus;
    }

    public String getAppointmentstatus() 
    {
        return appointmentstatus;
    }
private List<CDetails> detailsList;

    public List<CDetails> getDetailsList() {
        return detailsList;
    }

    public void setDetailsList(List<CDetails> detailsList) {
        this.detailsList = detailsList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appointmentid", getAppointmentid())
            .append("userid", getUserid())
            .append("campid", getCampid())
            .append("appointmenttime", getAppointmenttime())
            .append("apprice", getApprice())
            .append("appointmentstatus", getAppointmentstatus())
            .append("detailsList", getDetailsList())
            .toString();
    }
}
